package com.zf.yichat.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "st_goods_img")
public class StGoodsImg implements Serializable {
    @Id
    private Integer id;

    @Column(name = "goods_id")
    private Integer goodsId;

    private String url;

    @Column(name = "create_time")
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public StGoodsImg(Integer id, Integer goodsId, String url, Date createTime) {
        this.id = id;
        this.goodsId = goodsId;
        this.url = url;
        this.createTime = createTime;
    }

    public StGoodsImg() {
        super();
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return goods_id
     */
    public Integer getGoodsId() {
        return goodsId;
    }

    /**
     * @param goodsId
     */
    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    /**
     * @return url
     */
    public String getUrl() {
        return url;
    }

    /**
     * @param url
     */
    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}